<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>一级分类</title>
    <link rel="stylesheet" href="./lib/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="./lib/bootstrap-validator/css/bootstrapValidator.css">
    <link rel="stylesheet" href="./lib/nprogress/nprogress.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/one.css">
</head>

<body>
    <div class="box">
        <!-- 左边导航栏 -->
        <div class="box-left">
            <div class="left-header">
                <h3>最棒的前端</h3>
            </div>
            <div class="left-main">
                <i></i>
                <h3>超级棒的梁红飞</h3>
            </div>
            <div class="left-list">
                <ul class="one-list">
                    <li><i class="glyphicon glyphicon-user"></i>用户管理</li>
                    <li><i class="glyphicon glyphicon-list"></i>
                        <span class="btn-toggle">分类管理</span>
                        <ul class="show-hide">
                            <li>一级分类</li>
                            <li>二级分类</li>
                        </ul>
                    </li>
                    <li><i class="glyphicon glyphicon-th"></i><a href="./product.html">商品管理</a></li>
                </ul>
            </div>
        </div>
        <!-- 右边内容栏 -->
        <div class="box-right">
            <div class="right-header">
                <p class="p-left glyphicon glyphicon-align-justify"></p>
                <p class="p-right glyphicon glyphicon-log-out"></p>
            </div>
            <div class="right-nav">
                <p class="nav-dateil"><b>管理系统/</b>分类管理/一级分类</p>
            </div>
            <!-- 用户表单数据渲染 -->
            <div class="right-main">
                <button class="btn btn-default" data-toggle="modal" data-target=".modal-one">添加分类</button>
                <table class="table table-bordered text-center table-hover">
                    <thead>
                        <tr>
                            <th>序号</th>
                            <th>一级分类名</th>
                        </tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
                <!-- 分页父容器  -->
                <div class="pull-right">
                    <ul id="paginator"></ul>
                </div>
            </div>
        </div>
        <!-- 模态框 -->
        <div class="modal fade modal-one" tabindex="-1" role="dialog">
            <div class="modal-dialog modal-sm" role="document">
                <div class="modal-content modal-sm">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title">添加分类</h4>
                    </div>
                    <div class="modal-body">
                        <form class="add-form" id="form1">
                            <!-- 表单组 -->
                            <div class="form-group">
                                <input type="text" class="form-control" name="categoryName" placeholder="请求输入一级分类">
                            </div>
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                        <button type="submit" class="btn btn-primary btn-ok" form="form1">确定</button>
                    </div>
                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal-dialog -->
        </div>
        <!-- /.modal -->
    </div>
    <!-- 模板建设 -->
    <script type="text/html" id="tmp">
        {{each rows v i}}
        <tr>
            <th>{{i+1+size*(page-1)}}</th>
            <th>{{v.categoryName}}</th>
        </tr>
        {{/each}}
    </script>
    <script src="./lib/jquery/jquery.min.js"></script>
    <script src='./lib/bootstrap/js/bootstrap.min.js'></script>
    <script src="./lib/bootstrap-validator/js/bootstrapValidator.min.js"></script>
    <script src='./lib/artTemplate/template-web.js'></script>
    <script src='./lib/bootstrap-paginator/bootstrap-paginator.js'></script>
    <script src="./lib/nprogress/nprogress.js"></script>
    <script src="./js/common.js"></script>
    <script src="./js/one.js"></script>
</body>

</html>